package com.zb.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSONObject;
import com.zb.service.HousetypeService;

@Controller
@RequestMapping("housetype")
public class HousetypeController {

	@Autowired
	private HousetypeService housetypeService;

	@RequestMapping("list")
	@ResponseBody
	public String findAll() {
		return JSONObject.toJSONString(housetypeService.findAll());
	}
}
